﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OneMile.Entity.Model
{
    public class EOrderDetails:BaseEntity
    {
        /// <summary>
        /// 来自Commodity表
        /// </summary>
        public String CommodityName { get; set; }
 
        /// <summary>
        /// 规格（大小杯）来自Specificationbiao
        /// </summary>
        public String SpecificationName { get; set; }


        public Guid OrderDetailsId { get; set; }
        public Guid OrderId { get; set; }
        public Guid CommodityId { get; set; }

        /// <summary>
        /// 总数
        /// </summary>
        public Int32 Amount { get; set; }
        /// <summary>
        /// 商品价格Id
        /// </summary>
        public Guid CommodityPriceId { get; set; }
        /// <summary>
        /// 单价
        /// </summary>
        public Decimal UnitPrice { get; set; }
        /// <summary>
        /// 添加物
        /// </summary>
        public Guid CommodityAccessoriesId { get; set; }
        /// <summary>
        /// 添加物价格
        /// </summary>
        public Decimal CommodityAccessoriesPrice { get; set; }
        /// <summary>
        /// 总价
        /// </summary>
        public Decimal TotalPrice { get; set; }
        /// <summary>
        /// 折扣率(每次要查找要没有针对该商品的折扣)
        /// </summary>
        public Decimal Discount { get; set; }
        /// <summary>
        /// 折扣
        /// </summary>
        public Decimal DiscountPrice { get; set; }
        /// <summary>
        /// 实际总价
        /// </summary>
        public Decimal ActualTotalPrice { get; set; }

        public Guid PromotionsId { get; set; }

        /// <summary>
        /// 附件的名字，多个用逗号隔开
        /// </summary>
        public String CommodityAccessoriesName { get; set; }

        /// <summary>
        /// 附加属性名称（甜度，冷热）来自AttributeDetails表,多个属性的名字用逗号隔开
        /// </summary>
        public String AttributeDetailsName { get; set; }

        public IList<EOrderDetailsAccessories> OrderDetailsAccessoriesList { get; set; }
        public IList<EOrderDetailsAttribute> OrderDetailsAttributeList { get; set; }
    }
}
